# TODO list.sort([reverse=True])
# # 列表排序, 默认是升序. 设置了reverse=True, 那么就是降序
# list = ['A','B','C','D','E' ,'F', 'g']
# # 升序
# # list.sort()
# # print(list)
# # # 降序
# list.sort(reverse=True)
# print(list)

# TODO list.reverse()
list = ['A','B','C','D','E' ,'F', 'g']
list.reverse()    # 列表翻转, 对原列表进行翻转
print(list)

# 切片翻转
list = list[::-1]
print('切片翻转后:', list)
print('原生列表:', list)